/***************************************************
 * 使用if-else/switch实现选择
 * *************************************************/
#include "common.h"
using namespace std;

int test_select(int val1, int val2)
{
    if (val1 < val2) {
        cout << "val1 < val2" << endl;
    } else {
        cout << "val1 > val2" << endl;
    }

    switch(val1) {
        case 1: {
            cout << "input val1 = ";
            cout << val1 << endl;
            break;
        }
        case 2: {
            cout << "input val1 = ";
            cout << val1 << endl;
            break;
        }
        default:
            break;
    }
}

int main()
{
    test_select(1, 3);
    return 0;
}